package com.frxuexi.lib_base.net

import com.frxuexi.lib_base.entity.HourseDetailBean
import com.frxuexi.lib_base.entity.HourseHomeBean
import com.frxuexi.lib_base.entity.HourseMenu
import com.frxuexi.lib_base.entity.NewHourseBean
import com.frxuexi.lib_base.entity.OldHourseBean
import com.frxuexi.lib_base.entity.ResHourse
import retrofit2.http.GET
import retrofit2.http.Query

interface HourseApiService {

    @GET("/appapi/v9_9_2/index?platform=android&sign=a1c2238d6ccceaff19980b3358da373c&longitude=116.416632&m_channel=360Market&dataSource=HEFEI&version=v9_9_2&latitude=39.922705&timestamp=1717654589749&isRecommend=true&devModel=5.1.1&devId=ZmEdK0aJLXMDAGc68iHFuuXG")
    suspend fun getHourseHome():ResHourse<HourseHomeBean>

    @GET("/appapi/v9_9_2/map/menu?platform=android&sign=cf9ff9a49e624c1de6232925d003295a&m_channel=360Market&dataSource=HEFEI&version=v9_9_2&timestamp=1717654586124&devModel=5.1.1&devId=ZmEdK0aJLXMDAGc68iHFuuXG&registrationId=1507bfd3f6c972d8692")
    suspend fun getHomeMenu():ResHourse<HourseMenu>

    @GET("/appapi/v9_9_2/room/list?platform=android&sign=85babad2a595482bfe6c74cb683aa820&m_channel=360Market&dataSource=HEFEI&version=v9_9_2&pageSize=10&timestamp=1717919707463&currentPage=1&devModel=5.1.1&bizType=SALE&devId=ZmEdK0aJLXMDAGc68iHFuuXG")
    suspend fun getOldHourse():ResHourse<OldHourseBean>

    @GET("/appapi/v9_9_2/newHouse/list?platform=android&sign=baed2738c185a41c1c1ce0b0529f0124&m_channel=360Market&dataSource=HEFEI&version=v9_9_2&pageSize=10&timestamp=1717919669202&currentPage=2&devModel=5.1.1&devId=ZmEdK0aJLXMDAGc68iHFuuXG")
    suspend fun getNewHourse():ResHourse<NewHourseBean>

    @GET("/appapi/v9_9_2/room/detail?platform=android&sign=a95f8b8c62d53b0db488312a3c0a2c82&m_channel=360Market&dataSource=HEFEI&version=v9_9_2&timestamp=1717655450367&devModel=5.1.1&devId=ZmEdK0aJLXMDAGc68iHFuuXG&origin=other&bizType=SALE")
    suspend fun getHoiurseDetail(@Query("id")id:Int):ResHourse<HourseDetailBean>
}